sinon.stub to run test conditions and mocha's done()