MailExtension: added tests, fixed service prefix