get java tests working