finished test when_find_block_segment.c