api tests work