Added unit test to location lib.