Add primitive pack/unpack test