added tests for async throwing