add test cases for Message model