Make test pass on java. Different to_xml beaviour