Fixed PacketBuffer test code for linux