crc/test: a few more cleanups and code unifications

Signed-off-by: Jens Axboe <axboe@fb.com>