Implement getInventoryQuantity() method + unit tests.