fix test compilation errors