add tests for unpack