hash tests now pass on Java8