Replace consolidateEqual() with seriesEqual()
Add missing return statements in failed unit tests