async test refactoring