added test cases for testing move_to_location function