more tests, and update Java and JavaScript