Feature/issue 358 idle state

Added some unit test case for https://github.com/couchbase/couchbase-lite-java-core/issues/358