fix unit tests, simplify SynchronousPouchDB