[SciPy-dev] test matrix equality