Group some responsibilities into a test helper