add more complicate unit test for message parsing