[SQUASH ME] pkt: some fixes
[SQUASH ME] tests: adapt unittests for previous changes
[SQUASH ME] tests: add new tests for pkt module