Tests for inventoryCtrl