Fix test case compilation errors