Add more tests covering Segmented Global Dedupe.
Fix some tests.