Add some API tests