Part of a giant rocket that will send humans back to the Moon has undergone a critical test.