Use $window on inventoryCtrl, so it can be mocked on tests
Added inventoryCtrl tests for hatching and selling
Merge pull request #2253 from djuretic/inventory_tests

More InventoryCtrl tests