Tests for issues couchbase-lite-java-core #224