added test for update_location