Working version of a test doing API calls from an asynchronous method.