Update Anon Function Parameters in asyncTest

Encountered compiler errors on using asyncTest ... fixed by making sure that the assert is a function of the anon function