More InventoryCtrl tests

It was necessary to use `$window` on `inventoryCtrl.js`, for mocking the `confirm()` calls.