Fix an error with JNI (test)