Test Hamming