search controller tests