tests for xml structure