java test added to compare