adding tests for mailer