Created api tests