>    stub: sinon.stub().returns(request)

Maybe you'll need to use a real `function()` instead of a sinon stub here, I don't know if sinon accepts to pass stubs as stubbed function.