added tests for unpack