fix tests, escape strings in XML