Tests for xml code