added tests to new jsoneditor function