Issue #109 - add unit test

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