added tests to send email