def _test_results(res_json, url):
    """
    tests that the api returns successfully with one or more results,
    returns the first result for convenience
    """
    assert res_json.get('results'), f"{url} no results"
    assert len(res_json['results']), f"{url} no results"
    return res_json['results'][0]