adding tests for email sending