Working s3_pack function and partial test.