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

https://bugzilla.mozilla.org/show_bug.cgi?id=1016432

This came up in cross-branch folder diff. As we are going to be moving quickly to fix this app in 2.0, we can't afford the risk of not uplifting.