test code for Sniffer (debugging)