fixed the email integration test