Add Java port of JavaScriptCore testapi.c for public APIs