InventoryRepository implementation with Tests