Refactor tests to remove some duplication
Refactor tests to remove some duplication

kerlandsson/whisper,piotr1212/whisper,alexandreboisvert/whisper,akbooer/whisper,jjneely/whisper,graphite-server/whisper,cbowman0/whisper,deniszh/whisper,graphite-project/whisper,obfuscurity/whisper,penpen/whisper