Added interface for Inventory, and a unit test for the Inventory.