fix compile error in testcases