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.
This is remote revision IDs rather than revisions, suggest naming it `getRemoteRevisionIds(couchClient, databaseUrl, documentId)`.