add API calls tests