Prevent tests failing against CouchDB 2.0 which does not support temp views

Not sure if this is how you would like to proceed here. The test is actually verifying that a document with an id with a "%" sign is allowed. But it goes on to create a temporary view to retrieve the document, which seems overkill for the test.

I've added some escape points if this is running in your test suite against "couchdb master".

Please contact me if you want to approach this differently.