Fix test on hash mac