fix testrunner for new-style COUCHDB_DATABASES

If ``COUCHDB_DATABASES`` uses the new syntax (dict of dicts) instead of a list of tuples, the test runner fails with 

````
ValueError: too many values to unpack
````

This change converts tuples to their dict representation in the testrunner and uses only the new representation internally.