add test code and more assertions, as well as simplify the JNI

Signed-off-by: Iliyan Malchev <malchev@google.com>
1 file changed