Tests for xml handler