fix java test