completed integrating api tests