I am sure you don't need to do restore on your own if you do this.sinon.stub