fixed mailer testing errors