figrued out what format means in unpack, and changed getFormat according to it
isSubset indentation wasn't correct, now all tests pass