Add test cases for messages #8.