Updated java_lib_tests to agree with ICancellableFuture.