Add hamming distance tests.