Bug 977574 - [Search] Improve test coverage of bgimg provider.