A European Space Agency probe has completed a three-year mission to test deep space technologies by making a controlled crash on the moon .