correct a bug in testcase