fixed api tests.