Add initial json tests to the TemplateUtilsTestCase
Minor json parser fix