implement a test suite for Packet
fix CRC extraction in isChecksumValid