Adds shard.dedupeEvents unit test.