Fix all the java tests

Fix all the java tests