fix memory leak at multiRead JNI
supported multiRead in Java side and added test code