Adding unit test for search criteria