added direction checking in the test cases for move_to_location