refactor #get_inventory test