Wagtailsearch unit tests

This pull request takes the test coverage for wagtailsearch to 89%. The only things that aren't unit tested now are the editors picks views, backwards migrations (which are being counted in that 11% of non unit tested things..) and a few lines here and there.