This expect may not get hit before the test ends. Either use the waitsFor method to make sure errorFunction was called OR pass a done function into the expect function and call it when completed like so
```` it("...", function (done) { invoke(function (error) { expect("...") done();})});