adding test_hamming