Fix SendMail tests