Improve hamming test suite