and C++ unit tests for Packet