Added tests for #5412
Added tests for #5412

ChristinaZografou/sympy,rahuldan/sympy,drufat/sympy,souravsingh/sympy,postvakje/sympy,aktech/sympy,postvakje/sympy,Titan-C/sympy,souravsingh/sympy,aktech/sympy,drufat/sympy,chaffra/sympy,madan96/sympy,madan96/sympy,Titan-C/sympy,kaushik94/sympy,hargup/sympy,drufat/sympy,hargup/sympy,aktech/sympy,postvakje/sympy,madan96/sympy,sampadsaha5/sympy,jaimahajan1997/sympy,kaushik94/sympy,rahuldan/sympy,souravsingh/sympy,sampadsaha5/sympy,ChristinaZografou/sympy,Titan-C/sympy,kaushik94/sympy,hargup/sympy,sampadsaha5/sympy,yashsharan/sympy,yashsharan/sympy,skidzo/sympy,skidzo/sympy,jaimahajan1997/sympy,skidzo/sympy,yashsharan/sympy,rahuldan/sympy,jaimahajan1997/sympy,ChristinaZografou/sympy,chaffra/sympy,chaffra/sympy