Extract test helper