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

Test coverage === 100%

Now we need a travis hook.

https://bugzilla.mozilla.org/show_bug.cgi?id=977574