Bug 977574 - [Search] Fix unit test coverage r=kgrandon