Fix expectation of a testindex

Set the testindex to 1 by default, like the JS does as well.