Fix test to not use the AttributeSet's AttributeWithIndex creation method.