Object to XML test