TST: aggregate_item_by_item test failure (GH5782)

closes #5782