Added tests for JsonEncoding