Fixed XML testing

Test reformatted xml, so that we don't fail in case attributes are
generated in different order. The difference is caused by different
libxml versions behaving differently, so really can not rely on some
order when doing test.

Signed-off-by: Michal Čihař <michal@cihar.com>
Merge branch 'xml-testing' into travis