tostring.escape : optimization

* use of xml.etree.ElementTree._escape_attrib and xml.etree.ElementTree._escape_cdata
* use of assertEquals in test for a better feedback (expected ... but was...)

all tests ok