DRY out code in commands/test.
DRY out code in commands/test.

PeterDaveHello/brunch,brunch/brunch,Flaise/brunch,lalomartins/brunch,hayesgm/brunch,rlugojr/brunch,justinwoo/brunch,ondreian/brunch,hellyeahllc/brunch,kidaa/brunch