wrote tests for email formats