I had to fix the line number for PragmaDeclaration before I could add the test output in the fail_compilation test. Previously it used the location of the first token after the PragmaDeclaration.