setup testing and added tests for Location service