added pack and unpack tests