Tests and more robust crc32 function.