Corrected testcase search index clearing.