add test for root message on client protobuf
fix client protobuf bug

the bug is lose message head before type