Cover asynchronous API with tests