Restore endpoint at the end of the test