fixes /couchbase-lite-java-core/issues/188

added test for /couchbase-lite-java-core/issues/188 to ReplicationTest.j...ava