Refactoring of XMLParserTest