Yeah. Nice catch. JSLint actually uncovered some bad logic. In the addSeries method of the same class, I was defining the the seriesCollection and not using it. Removing it caused tests to fail because, defining the variable again actually forced the attribute to be redefined which turns out was necessary due the array reference being overritten in the parseSeriesCollection method. Copying the array resolves the issue in a more correct way.