separated out api tests