added tests for xml encoder