For hamming encoder/decoder test