Write some testcode for the PacketStream class