test: Add test for LibvirtDomainXMLParser

A couple of changes where made to other classes as well to add
some features to allow more extensive testing.
test: Expand LibvirtDomainXMLParserTest with Interface test