hash test assertion