adding unit tests for MailSender class