Added Hash() trick to tests