Added Test for search and sort