JS backend: toString JVM consistency test