- added unit tests + fixed jni interface bugs