Updated hash test to work with MacOSX clang compiler