cleaned up api tests