tests: Fix openjdk6 test compatibility.