added a unit test for messages