testing overriding the pcap_loop method in pcap_lib