wrote mailer tests