tests for mailer