Add unit test for Location.