[TESTS] added api tests.