Private company SpaceX has carried out its first test of the Raptor rocket engine designed to send humans to Mars.