Added: test that checks preserving of IsJson flag.