fix a problem in test case