adding test for the async testing bug fix #1047