Test replication of a compacted DB

Create test to ensure library can replicate a database that has been compacted and that has several missing revisions.
They were already present in the file, I just reordered them to match the coding style. I'll go and clean them up though.