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

...djf
I don't doubt this is the correct way to do it but where is this function parameter referred in the docs of mocha?