Added test for mailer