fixed java tests