[#879] Fix mock mailer tests