added lib test and configuration option for pcap input format