Fix some logic in the test
Fix some logic in the test

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