Fix test according to changes in smtp mailer.