added testing for the unpack function