Fix all Java and JavaScript tests.