Add some unit test for the XML extractor to increase code coverage
- Also fix a bug in the create node