Fixed async test case issue.