I think we need create [sinon sandbox](http://sinonjs.org/docs/#sandbox) which will be automatic restore stub/spy functions.
Now (without restoring) it make side effect.

[Example from Karma](https://github.com/karma-runner/karma/blob/master/test/unit/mocha-globals.coffee#L16-L24).