Added support for Async callbacks in test cases