Made location mock a class
Added a test that set doesn't get called twice