fix tests for JsonGenerator