fix mailer tests