Added more tests for location change detection