Implemented unit and integration tests for smtpclient