Merge "Use correct indexing in FormatterTest." into main