fix save tests for python3
rename test hash class
Add tests for generic hash
Add tests for keyed hashes