updated api tests