search - unit test for sorting handling added