crc/test: fix potential div by zero