added async test wrapper for mocha compatibility
added test case for async test wrapper