adds api tests.