Add some functional API tests.