improve couchdb tests
- Improve couchdb isolation
- Add Mocks on some tests to improve speed in running the testsuite
- separate unit/integration tests.
(from redmine: created on 2015-12-01)
- Relations:
- precedes #7664 (closed)
(from redmine: created on 2015-12-01)