Add MessageTest.
Add message compression test and implement Snappy codec.