Like GHUnit AsyncTestCase functions.