implemented mailer tests