Added tests for hamming distance