fixed compile error in test case