Adds tests to the mailer plugin