Added more java tests