Fix the XML output in parserTests

In preparation for a proper JUnit diffing algorithm being used in
our tests, I'm fixing the XML calls to reportFailure.

Change-Id: I994d9a47629f81f6dd1150eb412ccd7ab310b2a8
Use console.error for errors

Just a quick cleanup patch for the obvious ones that I could find.

Change-Id: I39c14796b41659e6336fd4434d8e9c08572c07ce
Merge changes I39c14796,I994d9a47

* changes:
  Use console.error for errors
  Fix the XML output in parserTests