pan/bit: Add packing test framework