Add regression test for #8010
Add regression test for #8010

pllim/astropy,StuartLittlefair/astropy,StuartLittlefair/astropy,astropy/astropy,bsipocz/astropy,saimn/astropy,stargaser/astropy,dhomeier/astropy,lpsinger/astropy,saimn/astropy,lpsinger/astropy,astropy/astropy,mhvk/astropy,mhvk/astropy,dhomeier/astropy,larrybradley/astropy,stargaser/astropy,aleksandr-bakanov/astropy,MSeifert04/astropy,saimn/astropy,larrybradley/astropy,pllim/astropy,saimn/astropy,stargaser/astropy,lpsinger/astropy,mhvk/astropy,dhomeier/astropy,saimn/astropy,StuartLittlefair/astropy,stargaser/astropy,bsipocz/astropy,bsipocz/astropy,larrybradley/astropy,MSeifert04/astropy,lpsinger/astropy,MSeifert04/astropy,dhomeier/astropy,lpsinger/astropy,bsipocz/astropy,larrybradley/astropy,aleksandr-bakanov/astropy,larrybradley/astropy,pllim/astropy,mhvk/astropy,dhomeier/astropy,aleksandr-bakanov/astropy,StuartLittlefair/astropy,MSeifert04/astropy,pllim/astropy,StuartLittlefair/astropy,astropy/astropy,astropy/astropy,pllim/astropy,mhvk/astropy,astropy/astropy,aleksandr-bakanov/astropy