Updated tests; added optional tests for CouchDB ticket store.