Copy tests from couchbase-lite-andriod 1.0.0