mail service unit testing