TestSearch and sort in collections class