better testing for Mailer module