test case for inventory model