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

https://bugzilla.mozilla.org/show_bug.cgi?id=1016432