Generalize debug info test to be resilient to changes in metadata node numbering