bug fix in testcase