escaped xml output + tests

* escaping some bits of the toXml methods of Check*
+ added some basic tests for xml output