fix hash test