Convert extract_overlapping tests to unit tests.

Convert the tests from #1053 into the new unit-test style.