Testing analyzeInventory()