Are we convinced that this code actually gets called in the test reliably? This kind of thing in C++ code often has the bad characteristics of the test ending before the callback happens, resulting in flakey tests. 

My reading of Jasmine is that "waitsFor" is supposed to address this... ?