Fixed tests compilation errors