Bug 1075475 - [CostControl] Fix unit tests with a newer mocha r=salva r=...

...djf
Do you mean that functions spied with `this.sinon.spy` are automatically restored in the suite teardown?