fixed tests for async