Extract a test helper module