Add tests for issues 3370 and 3371.
Add tests for issues 3370 and 3371.

asm666/sympy,wyom/sympy,cccfran/sympy,mcdaniel67/sympy,AkademieOlympia/sympy,pandeyadarsh/sympy,ga7g08/sympy,meghana1995/sympy,hrashk/sympy,ChristinaZografou/sympy,garvitr/sympy,Davidjohnwilson/sympy,shikil/sympy,postvakje/sympy,yukoba/sympy,atsao72/sympy,kaichogami/sympy,jerli/sympy,drufat/sympy,atreyv/sympy,drufat/sympy,kevalds51/sympy,moble/sympy,ga7g08/sympy,Arafatk/sympy,postvakje/sympy,dqnykamp/sympy,Vishluck/sympy,kevalds51/sympy,postvakje/sympy,lindsayad/sympy,AunShiLord/sympy,kaichogami/sympy,mafiya69/sympy,MechCoder/sympy,cswiercz/sympy,rahuldan/sympy,ahhda/sympy,MridulS/sympy,mafiya69/sympy,Arafatk/sympy,skidzo/sympy,sampadsaha5/sympy,sampadsaha5/sympy,jerli/sympy,pandeyadarsh/sympy,iamutkarshtiwari/sympy,shipci/sympy,kumarkrishna/sympy,farhaanbukhsh/sympy,moble/sympy,cswiercz/sympy,sunny94/temp,maniteja123/sympy,yukoba/sympy,Titan-C/sympy,kumarkrishna/sympy,Curious72/sympy,drufat/sympy,emon10005/sympy,chaffra/sympy,jamesblunt/sympy,pandeyadarsh/sympy,jaimahajan1997/sympy,sahilshekhawat/sympy,madan96/sympy,cccfran/sympy,atreyv/sympy,Shaswat27/sympy,beni55/sympy,aktech/sympy,pbrady/sympy,shipci/sympy,Gadal/sympy,sampadsaha5/sympy,oliverlee/sympy,MechCoder/sympy,grevutiu-gabriel/sympy,atsao72/sympy,yashsharan/sympy,skirpichev/omg,VaibhavAgarwalVA/sympy,kaichogami/sympy,beni55/sympy,kmacinnis/sympy,MridulS/sympy,pbrady/sympy,souravsingh/sympy,lidavidm/sympy,beni55/sympy,abhiii5459/sympy,skidzo/sympy,Mitchkoens/sympy,kmacinnis/sympy,yukoba/sympy,Vishluck/sympy,vipulroxx/sympy,MechCoder/sympy,chaffra/sympy,yashsharan/sympy,atsao72/sympy,emon10005/sympy,cccfran/sympy,lidavidm/sympy,Mitchkoens/sympy,kaushik94/sympy,liangjiaxing/sympy,kumarkrishna/sympy,debugger22/sympy,asm666/sympy,ChristinaZografou/sympy,atreyv/sympy,wanglongqi/sympy,sunny94/temp,bukzor/sympy,aktech/sympy,Gadal/sympy,Shaswat27/sympy,moble/sympy,AkademieOlympia/sympy,sahmed95/sympy,debugger22/sympy,ahhda/sympy,cswiercz/sympy,toolforger/sympy,amitjamadagni/sympy,sahmed95/sympy,AunShiLord/sympy,srjoglekar246/sympy,Shaswat27/sympy,hargup/sympy,saurabhjn76/sympy,Designist/sympy,abloomston/sympy,oliverlee/sympy,dqnykamp/sympy,yashsharan/sympy,Mitchkoens/sympy,Sumith1896/sympy,jbbskinny/sympy,grevutiu-gabriel/sympy,rahuldan/sympy,asm666/sympy,hrashk/sympy,jbbskinny/sympy,abhiii5459/sympy,aktech/sympy,saurabhjn76/sympy,mafiya69/sympy,flacjacket/sympy,dqnykamp/sympy,liangjiaxing/sympy,ahhda/sympy,mcdaniel67/sympy,amitjamadagni/sympy,farhaanbukhsh/sympy,wanglongqi/sympy,ChristinaZografou/sympy,hargup/sympy,jamesblunt/sympy,jamesblunt/sympy,Designist/sympy,bukzor/sympy,toolforger/sympy,kmacinnis/sympy,wyom/sympy,jerli/sympy,sunny94/temp,iamutkarshtiwari/sympy,Arafatk/sympy,Gadal/sympy,garvitr/sympy,debugger22/sympy,Curious72/sympy,mcdaniel67/sympy,toolforger/sympy,madan96/sympy,maniteja123/sympy,iamutkarshtiwari/sympy,AkademieOlympia/sympy,meghana1995/sympy,vipulroxx/sympy,abhiii5459/sympy,rahuldan/sympy,pbrady/sympy,chaffra/sympy,Vishluck/sympy,AunShiLord/sympy,hrashk/sympy,vipulroxx/sympy,farhaanbukhsh/sympy,lindsayad/sympy,liangjiaxing/sympy,wanglongqi/sympy,sahilshekhawat/sympy,madan96/sympy,jaimahajan1997/sympy,meghana1995/sympy,sahilshekhawat/sympy,ga7g08/sympy,lidavidm/sympy,souravsingh/sympy,Titan-C/sympy,Sumith1896/sympy,wyom/sympy,jbbskinny/sympy,Designist/sympy,VaibhavAgarwalVA/sympy,bukzor/sympy,kaushik94/sympy,Titan-C/sympy,skidzo/sympy,lindsayad/sympy,abloomston/sympy,jaimahajan1997/sympy,garvitr/sympy,shikil/sympy,Sumith1896/sympy,abloomston/sympy,Davidjohnwilson/sympy,oliverlee/sympy,emon10005/sympy,Curious72/sympy,maniteja123/sympy,diofant/diofant,kaushik94/sympy,shikil/sympy,sahmed95/sympy,Davidjohnwilson/sympy,hargup/sympy,saurabhjn76/sympy,grevutiu-gabriel/sympy,MridulS/sympy,souravsingh/sympy,shipci/sympy,kevalds51/sympy,VaibhavAgarwalVA/sympy