NASA is working on testing a prototype for a robot spaceship that could save the world if we are threatened by a killer asteroid.