Added batch mode tests to JsonFormatter