Issue #358 - fix bug in mock code that caused test to fail

https://github.com/couchbase/couchbase-lite-android/issues/358