Add a simple unit test to test location API.