Fixed tests to check for correct element order in XML documents