added tests for Message codec