Removed the unchecked warnings from Matrix2OptimizationTest