(#2679) - add compaction+replication test

I got worried and thought that maybe replication of deleted docs after compaction wouldn't work. But it turns out it does, because the `_revision` information is still there thanks to the metadata being saved. This test confirms that.