Fix testmode in mailer queues