Add multiple-chunk test for extract() function

New test_extract_multiple() function to extract multiple code chunks
from a single string.