Updated search controller to only show paging if number of pages > 1
Added search tests.