added test for mail.py