fix wrong hash bug
implemented wrong hash test