Few modifications and fixes in PCAPimporter. Also provide test cases.