[RocksJava] Testcase improvements