Added a unit test for NioPackets