Add JNI test.