unit test for packet_in