Added test for valueEncoding:'json'