fix the compiling error in test case