Fix bug.
Add test case for XmlAttributeExtrator.