Mock the location for integration test.