Implement unit tests for message builder and message parsers
Travis runs unit tests
Merge pull request #926 from MailCore/unittest

Unittest for message parser and builder