fix tests to use test mailer