Virgin Galactic has completed a rocket-powered test flight after months-long delays due to a computer glitch.