instead of modifying the mock like this (I have some doubts...) you can use sinon.stub.yield (see http://sinonjs.org/docs/#spies) in order to stub the findByNumber method *and* choose when it will call it's callback.