Fix hash tests