a few unit tests for class TestbedPacketTrap