Added a LocationMock and a test that unload is called at the right time.