Adds Tests for SearchController

Adds tests for the search controller within the main controllers.