java tests fixed