Added test cases for xml and json