tests: update test_ffi_java_types to be more portable

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>