Tests: Breakout repetitive test code into 'helpers'.