Move spec helpers to external module