ALM-209 added better error reporting and tests for CouchDB 409 errors