api call tests