Add rules and test for Search Controller