NASA has successfully tested its RS-25 flight engine, which it hopes will one day help carry astronauts to Mars.