Add API tests.