added new test when_find_block_segment