Add api call tests