Fix incorrect variable incrementation in testall.