Add a unit test to verify that inventories returned by createInventory do indeed implement the correct interface