added testing of email sending