updated test for legend grouping multiple series by name