add test for Packet of map type; fix a bug of TestType due to unordered of range map