Improved readability of xml encode test
Json encode test