Of course the change related to this test is incorrect. I have given the reason in [this](https://github.com/sympy/sympy/pull/7272/files#r10781620)