Unify the testcases for the two tests in names_test.go
Unify the testcases for the two tests in names_test.go

Signed-off-by: Aaron Lehmann <8ecfc6017a87905413dcd7d63696a2a4c351b604@docker.com>

curtiszimmerman/distribution,JimGalasyn/docker.github.io,sanscontext/docker.github.io,ibuildthecloud/distribution,dalanlan/distribution,thaJeztah/docker.github.io,anweiss/docker.github.io,convox/distribution,djenriquez/distribution,aybabtme/distribution,jonboulle/distribution,bdwill/docker.github.io,cezarsa/distribution,yeghishe/distribution,sanscontext/docker.github.io,gdevillele/docker.github.io,higebu/distribution,lorieri/distribution,sthapaun/distribution,arneluehrs/distribution,Tiesheng/distribution,nevermosby/distribution,13W/distribution,sanscontext/docker.github.io,sadlil/distribution,joeuo/docker.github.io,LouisKottmann/distribution,noxiouz/distribution,humble00/distribution,linearregression/distribution,thelinuxkid/distribution,denverdino/denverdino.github.io,moxiegirl/distribution,mbentley/distribution,BradleyA/distribution,jzwlqx/denverdino.github.io,pdevine/distribution,genedock/distribution,schu/distribution,thaJeztah/docker.github.io,jzwlqx/denverdino.github.io,runcom/distribution,docker-zh/docker.github.io,AoJ/distribution,konnase/distribution,nevermosby/distribution,jhicks-camgian/distribution,dobril-stanga/distribution,n1tr0g/distribution,harrisonfeng/distribution,spacexnice/distribution,lorieri/distribution,jmitchell/distribution,aaronlehmann/distribution,djenriquez/distribution,johnstep/docker.github.io,troy0820/docker.github.io,aaronlehmann/distribution,sanscontext/docker.github.io,spacexnice/distribution,huamai-io/distribution,denverdino/distribution-stevvooe,miminar/distribution,xiekeyang/distribution,denverdino/denverdino.github.io,vdemeester/distribution,dobril-stanga/distribution,jackpgriffin/distribution,ChenLingPeng/distribution,gdevillele/docker.github.io,avinson/distribution,CodeJuan/distribution,BrickXu/distribution,endophage/distribution,menglingwei/denverdino.github.io,andrewnguyen/distribution,genedock/distribution,kmala/distribution,BrianBland/distribution,paulczar/distribution,danix800/docker.github.io,anweiss/docker.github.io,denverdino/docker.github.io,aduermael/docker.github.io,docker-zh/docker.github.io,thaJeztah/distribution,bxy09/distribution,mattmoor/distribution,hpcloud/distribution,dalanlan/distribution,atyenoria/distribution,Gobliip/distribution,curtiszimmerman/distribution,rbarlow/distribution,LouisKottmann/distribution,huamai-io/distribution,rillig/docker.github.io,BSWANG/denverdino.github.io,mikebrow/distribution,arvindkandhare/distribution,gdevillele/docker.github.io,RaviTezu/distribution,BrianBland/distribution,docker/distribution,iskradelta/distribution,avinson/distribution,tschoots/distribution,moxiegirl/distribution,adambrett-forks/distribution,harche/distribution,thaJeztah/docker.github.io,joaofnfernandes/docker.github.io,shin-/docker.github.io,LuisBosquez/docker.github.io,docker/docker.github.io,shubheksha/docker.github.io,rochacon/distribution,docker/docker.github.io,rbarlow/distribution,sallyom/distribution,tt/distribution,zerosign/distribution,jramseye/distribution,liubin/distribution,denverdino/distribution-stevvooe,phiroict/docker,rodacom/docker-hub,konstruktoid/distribution,joaofnfernandes/docker.github.io,rodacom/docker-hub,sthapaun/distribution,thaJeztah/docker.github.io,troy0820/docker.github.io,mbentley/distribution,troy0820/docker.github.io,Seb-Solon/distribution,lcarstensen/distribution,manoj535/distribution,tian-xiaobo/distribution,duglin/distribution,johnstep/docker.github.io,joeuo/docker.github.io,sebrandon1/distribution,bigsurge/distribution,runcom/distribution,lindenlab/distribution,higebu/distribution,humble00/distribution,AoJ/distribution,aprajshekhar/distribution,shubheksha/docker.github.io,docker-zh/docker.github.io,amitshukla/distribution,mattmoor/distribution,rillig/docker.github.io,rhoml/distribution,stevvooe/distribution,bpradipt/distribution,thaJeztah/docker.github.io,hopkings2008/distribution,dmcgowan/distribution,andrewnguyen/distribution,jmitchell/distribution,troy0820/docker.github.io,bdwill/docker.github.io,pdevine/distribution,BradleyA/distribution,nateww/distribution,denverdino/docker.github.io,jlhawn/distribution,aybabtme/distribution,denverdino/distribution,RichardScothern/distribution,adambrett-forks/distribution,JimGalasyn/docker.github.io,dv/distribution,phiroict/docker,lcarstensen/distribution,ContainerSolutions/distribution,JimGalasyn/docker.github.io,tschoots/distribution,tt/distribution,joeuo/docker.github.io,phiroict/docker,denverdino/docker.github.io,danix800/docker.github.io,noxiouz/distribution,shin-/docker.github.io,estesp/distribution,amitshukla/distribution,shubheksha/docker.github.io,jonboulle/distribution,denverdino/denverdino.github.io,bpradipt/distribution,codefresh-io/cf-distribution,yeghishe/distribution,docker/distribution,denverdino/docker.github.io,deis/distribution,shubheksha/docker.github.io,zhaytee/distribution,mikebrow/distribution,joaofnfernandes/docker.github.io,iskradelta/distribution,jackpgriffin/distribution,menglingwei/denverdino.github.io,RyanDeng/distribution,aduermael/docker.github.io,beni55/distribution,wangmingshuai/distribution,mattrgreen/distribution,harche/distribution,convox/distribution,LuisBosquez/docker.github.io,wangmingshuai/distribution,shin-/docker.github.io,londoncalling/docker.github.io,jwhonce/distribution,bxy09/distribution,anweiss/docker.github.io,jzwlqx/denverdino.github.io,alexisbellido/docker.github.io,joeuo/docker.github.io,Seb-Solon/distribution,jordimassaguerpla/distribution,arneluehrs/distribution,LuisBosquez/docker.github.io,championv/distribution,jrjang/distribution,jwhonce/distribution,duglin/distribution,shyr/distribution,ContainerSolutions/distribution,rillig/docker.github.io,nateww/distribution,jzwlqx/denverdino.github.io,nwt/distribution,RaviTezu/distribution,gavioto/distribution,rillig/docker.github.io,gavioto/distribution,RichardScothern/distribution,calavera/distribution,mattrgreen/distribution,baloo/distribution,konstruktoid/distribution,anweiss/docker.github.io,linearregression/distribution,cyli/distribution,danix800/docker.github.io,Tiesheng/distribution,schu/distribution,sergeyfd/distribution,thaJeztah/distribution,bdwill/docker.github.io,lindenlab/distribution,londoncalling/docker.github.io,vdemeester/distribution,johnstep/docker.github.io,johnstep/docker.github.io,alexisbellido/docker.github.io,sanscontext/docker.github.io,phiroict/docker,yuwaMSFT2/distribution,phiroict/docker,joaofnfernandes/docker.github.io,hopkings2008/distribution,BSWANG/denverdino.github.io,liubin/distribution,cezarsa/distribution,dave-tucker/distribution,calavera/distribution,BSWANG/denverdino.github.io,Gobliip/distribution,deis/distribution,londoncalling/docker.github.io,manoj535/distribution,yuwaMSFT2/distribution,ibuildthecloud/distribution,arvindkandhare/distribution,sallyom/distribution,imranraja85/distribution,JimGalasyn/docker.github.io,armbuilds/distribution,jrjang/distribution,BSWANG/denverdino.github.io,docker/docker.github.io,denverdino/denverdino.github.io,jzwlqx/distribution,alexisbellido/docker.github.io,aduermael/docker.github.io,hpcloud/distribution,bigsurge/distribution,atyenoria/distribution,bsmr-docker/distribution,gdevillele/docker.github.io,jzwlqx/denverdino.github.io,harrisonfeng/distribution,cyli/distribution,thelinuxkid/distribution,estesp/distribution,docker/docker.github.io,shubheksha/docker.github.io,dmcgowan/distribution,menglingwei/denverdino.github.io,sebrandon1/distribution,bdwill/docker.github.io,joeuo/docker.github.io,beni55/distribution,gdevillele/docker.github.io,armbuilds/distribution,aduermael/docker.github.io,menglingwei/denverdino.github.io,JimGalasyn/docker.github.io,anweiss/docker.github.io,johnstep/docker.github.io,docker-zh/docker.github.io,imranraja85/distribution,denverdino/docker.github.io,jhicks-camgian/distribution,shyr/distribution,aprajshekhar/distribution,dave-tucker/distribution,paulczar/distribution,alexisbellido/docker.github.io,kmala/distribution,londoncalling/docker.github.io,endophage/distribution,tdooner/distribution,sadlil/distribution,codefresh-io/cf-distribution,menglingwei/denverdino.github.io,RyanDeng/distribution,shin-/docker.github.io,danix800/docker.github.io,championv/distribution,tian-xiaobo/distribution,tdooner/distribution,rhoml/distribution,zerosign/distribution,ChenLingPeng/distribution,docker/docker.github.io,jordimassaguerpla/distribution,konnase/distribution,docker-zh/docker.github.io,alexisbellido/docker.github.io,londoncalling/docker.github.io,denverdino/distribution,xiekeyang/distribution,sergeyfd/distribution,nwt/distribution,joaofnfernandes/docker.github.io,jramseye/distribution,rochacon/distribution,jzwlqx/distribution,n1tr0g/distribution,dv/distribution,shin-/docker.github.io,jlhawn/distribution,stevvooe/distribution,BrickXu/distribution,BSWANG/denverdino.github.io,baloo/distribution,CodeJuan/distribution,LuisBosquez/docker.github.io,zhaytee/distribution,bdwill/docker.github.io,LuisBosquez/docker.github.io,miminar/distribution,bsmr-docker/distribution,denverdino/denverdino.github.io,13W/distribution