Add a test case for MailService