ported mailer plugin tests