Generalize debug info tests to be forward compatible with future DISubprogram changes