test_mailer improvements