test url prior to api call