Extracting a test helper