Add isAsync flag to it as sync fail tests were failing due to runtime.Goexit()
Add check to see if done has been called more than once in async test