[#60660102] adding pair unpack and tests

separate out pair to its own file adding a pair
unpack helper function as well
as unit tests