Add unit test for list_item inventory_record nil check