test for message parsing