Added mailer tests