Test Java algorithms