[tests] JSON test independent of UTF-8 support