Adding mocks for location and api objects