Improve email integration test