added additional checks for search testcase