refactored xml-helpers tests