Check block size

Sync check_block_size test case to upstream.