Bug 1016432 - [Search] Fix unit tests with a newer mocha r=kgrandon