Fixed XML testing

Actually compare XML trees rather than relying on the text
representation being same as this is pretty much dependant on lxml
version.

Signed-off-by: Michal Čihař <michal@cihar.com>