Move parser tests to their own module
Parse references in attributes