unit test for InventoryController

added a unit test to test the addItem() method for InventoryController.
Testing that the inventory array is updated when an item is added.