Protect hamming against incorrect implementation
Merge pull request #57 from glamouracademy/master

add test to make sure