added some tests in source file

mainly the email_send test