Fix for #2 didn't create the hash
Improve test coverage