refactor FlushIntegrationTest