Update Java tests to 4.4
Fix segfault in TM finalize action