Add test for email provider