Added unit test for Message class