Tests run as a JNI method