added test cases for message types