DebugInfo: Generalize some tests to handle variations in attribute ordering.