refactor heuristic tests to use new helper
refactor heuristic tests to use new helper

Mx7f/linguist,adamkaplan/linguist,mcandre/linguist,jjatria/linguist,sideci-sample/sideci-sample-linguist,sebgod/linguist,MahmoudFayed/linguist,pcantrell/linguist,davidzchen/linguist,alvarotrigo/linguist,meunierfrederic/octocatlinguist,thejameskyle/linguist,ilyes14/linguist,erkyrath/linguist,christop/linguist,christop/linguist,Rockyspade/linguist,hcatlin/linguist,hcutler/linguist,JJ/linguist,MadcapJake/linguist,R4PaSs/linguist,chiranjeevjain/linguist,JJ/linguist,anhongyue/test222,CoderXpert/linguist,scttnlsn/linguist,sebgod/linguist,PsichiX/linguist,davidzchen/linguist,meunierfrederic/octocatlinguist,CegepVictoriaville/linguist,sebgod/linguist,sagar290/linguist,meunierfrederic/octocatlinguist,wcandillon/linguist,stanhu/linguist,osorgin/linguist,a0viedo/linguist,sideci-sample/sideci-sample-linguist,assimovt/ling-ist,c-lipka/linguist,alitalia/linguist,yscho/linguist,stanhu/linguist,whitj00/linguist,jtbandes/linguist,tschf/linguist,pchaigno/linguist,sebgod/linguist,steventhanna/linguist,cokeboL/linguist,jrnold/linguist,mattn/linguist,iblech/linguist,ammaraskar/linguist,thejameskyle/linguist,steventhanna/linguist,0a-/linguist,BerkeleyTrue/linguist,manveru/linguist,alvarotrigo/linguist,c-lipka/linguist,chiranjeevjain/linguist,georgesuperman/linguist,anhongyue/test222,cybernet14/linguist,alitalia/linguist,CegepVictoriaville/linguist,scttnlsn/linguist,marcojonker/test,yyx990803/linguist,BerkeleyTrue/linguist,seanders/linguist,jjatria/linguist,MahmoudFayed/linguist,martynbm/linguist,bluebear94/linguist,mwpastore/linguist,cokeboL/linguist,mattn/linguist,matt40k/linguist,FStarLang/linguist,ilyes14/linguist,jtbandes/linguist,yscho/linguist,yyx990803/linguist,JJ/linguist,ya7lelkom/linguist,Rockyspade/linguist,erkyrath/linguist,a0viedo/linguist,whitj00/linguist,kyoungrok0517/linguist,wcandillon/linguist,SRI-CSL/linguist,osorgin/linguist,stanhu/linguist,github/linguist,ya7lelkom/linguist,cybernet14/linguist,github/linguist,jrnold/linguist,georgesuperman/linguist,yyx990803/linguist,PsichiX/linguist,pchaigno/linguist,MostAwesomeDude/linguist,erkyrath/linguist,JJ/linguist,marcojonker/test,seanders/linguist,ppaulweber/github-linguist,pchaigno/linguist,Mx7f/linguist,tschf/linguist,kyoungrok0517/linguist,github/linguist,hcutler/linguist,bluebear94/linguist,ammaraskar/linguist,stanhu/linguist,phpsgi/linguist,hcatlin/linguist,martynbm/linguist,MostAwesomeDude/linguist,pchaigno/linguist,kr/linguist,manveru/linguist,nburkley/linguist,douglas-larocca/linguist,douglas-larocca/linguist,yyx990803/linguist,kr/linguist,iblech/linguist,assimovt/ling-ist,phpsgi/linguist,adamkaplan/linguist,R4PaSs/linguist,ppaulweber/github-linguist,github/linguist,pcantrell/linguist,CoderXpert/linguist,SRI-CSL/linguist,FStarLang/linguist,mwpastore/linguist,MadcapJake/linguist,matt40k/linguist,mcandre/linguist,0a-/linguist,nburkley/linguist,erkyrath/linguist,sagar290/linguist