fixed tests for async behavior