bug fix of testcase