API tests: create tests for the API methods.