Fix test for deprecated JSON funcs.