Added Message parsing and some tests for it.