Fixes EmailFlowIT and creates utilities for testing.