Implemented unit tests for smtpclient, fixed Gruntfile