Issue #131 - add unit test that reproduces issue.

https://github.com/couchbase/couchbase-lite-java-core/issues/131