renamed getTestId to getIndex, changed usages