using the API in the test