added test for MailService