add test for xml structure and attributes