Create test_email_factory.py