Fix: Event packet parse bug.
Added Test for event packet.
Modified samples.
Merge branch 'fix_event_packet_parse_bug'