Tests hash of blocks