smaz_tests: check constraint error in hash-to-code conversion