improve unit tests so that PouchDB usage is actually somewhat covered