adding api tests