Added test for json and xml!