Adds unit tests for SearchController
Merge pull request #1856 from velesin/search_controller_tests

Adds unit tests for SearchController