Added unit tests for prefix matching (Query.prefixMatchLevel)

For couchbase/couchbase-lite-java-core#302

You will also need https://github.com/couchbase/couchbase-lite-java-core/pull/309 which implements the prefixMatchLevel property itself.