This trick with a callback like this is to use the wait and resume test helpers to make sure the test fails if this callback is not called. 

http://yuilibrary.com/yui/docs/test/#asynctests

If this races to the end it might mark the test as passing without hitting the callback at all.