Finished all tests for model scopes (for search)

Fixed some problems with tests in some of the controllers. Also fixed a
minor bug with searching keywords so that wildcards are now placed on
both sides of the keywords.