Extract test_helpers.