Fixed api tests.