Updating: adding testing code for contrib/JNI