I don't understand how this test can pass. You're not passing `onerrorStub` to anything.
I've put some `console.log` and verified that we're actually never entering this callback.