Resolved test failures in Java tests