Correct tests for eachWithIndex to use 0 based indexes