Fix a bug in Test Case.