crc32: simplify unit test code