Adapted tests.
Added tests for dedup.