Fix compile error due to rename of newHashDatabase().
Added new regression test for HashDB JNI operations.
Fix merge issue