Added another unit test for hashes.
Patched memcheck script and hash_release function.