Fix java emacs output tests.