Fix the issue with mailer tests