working on java tests