The new add_inventory_by_delta is returning a CHKInventory when mapping from NULL Which is completely valid, but 'broke' one of the tests. So to fix it, changed the test to use CHKInventories on both sides, and add an __eq__ member. The nice thing is that CHKInventory.__eq__ is fairly cheap, since it only has to check the root keys.