Added a test for mailer.