rewrited tests for MailService