added test cases for xml