adding api call for locations and tests