Fix mismatch tests' output of python binding
Fix broken java binding