Inventory testing and valuation