creates test for pack
pack function passes test