complete the api tests