Added test_handle_packet; added parameter for packet type for testing,
moved packet types to within PortAgentPacket class.