[WFLY-2951] Minor fix to the XML parsing and some additional tests to test parsing and marshalling the configuration.