Added test for class Packet. Modified body of NetThread