Extract test_helper with IntegrationTestCase.