Add tests for getNewLocation