Fix test of hash mac