Added API tests.