fixed failing tests for inventory