fixed various bugs in tests. tests pass.
fixed various bugs in tests. tests pass.

seigel/pouchdb,janraasch/pouchdb,evidenceprime/pouchdb,h4ki/pouchdb,daleharvey/pouchdb,cesarmarinhorj/pouchdb,shimaore/pouchdb,microlv/pouchdb,microlv/pouchdb,garrensmith/pouchdb,Dashed/pouchdb,nicolasbrugneaux/pouchdb,mikeymckay/pouchdb,colinskow/pouchdb,tyler-johnson/pouchdb,willholley/pouchdb,tyler-johnson/pouchdb,lukevanhorn/pouchdb,lakhansamani/pouchdb,janraasch/pouchdb,Dashed/pouchdb,crissdev/pouchdb,nickcolley/pouchdb,pouchdb/pouchdb,HospitalRun/pouchdb,nickcolley/pouchdb,KlausTrainer/pouchdb,lukevanhorn/pouchdb,greyhwndz/pouchdb,adamvert/pouchdb,mattbailey/pouchdb,callahanchris/pouchdb,tohagan/pouchdb,p5150j/pouchdb,p5150j/pouchdb,asmiller/pouchdb,elkingtonmcb/pouchdb,mattbailey/pouchdb,tyler-johnson/pouchdb,johnofkorea/pouchdb,spMatti/pouchdb,elkingtonmcb/pouchdb,optikfluffel/pouchdb,Knowledge-OTP/pouchdb,mikeal/pouchdb,seigel/pouchdb,cdaringe/pouchdb,mikeymckay/pouchdb,garrensmith/pouchdb,ramdhavepreetam/pouchdb,garrensmith/pouchdb,slang800/pouchdb,slang800/pouchdb,jhs/pouchdb,h4ki/pouchdb,Actonate/pouchdb,lakhansamani/pouchdb,patrickgrey/pouchdb,colinskow/pouchdb,Charlotteis/pouchdb,janl/pouchdb,lukevanhorn/pouchdb,bbenezech/pouchdb,asmiller/pouchdb,Actonate/pouchdb,johnofkorea/pouchdb,mwksl/pouchdb,colinskow/pouchdb,bbenezech/pouchdb,greyhwndz/pouchdb,janraasch/pouchdb,Knowledge-OTP/pouchdb,patrickgrey/pouchdb,cdaringe/pouchdb,mikeymckay/pouchdb,tohagan/pouchdb,KlausTrainer/pouchdb,nickcolley/pouchdb,shimaore/pouchdb,mwksl/pouchdb,TechnicalPursuit/pouchdb,Knowledge-OTP/pouchdb,willholley/pouchdb,seigel/pouchdb,mainerror/pouchdb,bbenezech/pouchdb,KlausTrainer/pouchdb,ntwcklng/pouchdb,lakhansamani/pouchdb,Charlotteis/pouchdb,slang800/pouchdb,crissdev/pouchdb,asmiller/pouchdb,cdaringe/pouchdb,marcusandre/pouchdb,patrickgrey/pouchdb,ntwcklng/pouchdb,pouchdb/pouchdb,mainerror/pouchdb,callahanchris/pouchdb,caolan/pouchdb,ramdhavepreetam/pouchdb,daleharvey/pouchdb,spMatti/pouchdb,greyhwndz/pouchdb,spMatti/pouchdb,slaskis/pouchdb,cshum/pouchdb,HospitalRun/pouchdb,willholley/pouchdb,ramdhavepreetam/pouchdb,yaronyg/pouchdb,cesarmarinhorj/pouchdb,Dashed/pouchdb,jhs/pouchdb,tohagan/pouchdb,pouchdb/pouchdb,crissdev/pouchdb,janl/pouchdb,nicolasbrugneaux/pouchdb,h4ki/pouchdb,mainerror/pouchdb,slaskis/pouchdb,mattbailey/pouchdb,cshum/pouchdb,adamvert/pouchdb,optikfluffel/pouchdb,marcusandre/pouchdb,elkingtonmcb/pouchdb,janl/pouchdb,p5150j/pouchdb,microlv/pouchdb,slaskis/pouchdb,ntwcklng/pouchdb,johnofkorea/pouchdb,Actonate/pouchdb,HospitalRun/pouchdb,shimaore/pouchdb,callahanchris/pouchdb,cesarmarinhorj/pouchdb,optikfluffel/pouchdb,daleharvey/pouchdb,yaronyg/pouchdb,nicolasbrugneaux/pouchdb,Charlotteis/pouchdb,TechnicalPursuit/pouchdb,marcusandre/pouchdb,cshum/pouchdb,mwksl/pouchdb,yaronyg/pouchdb,jhs/pouchdb,TechnicalPursuit/pouchdb,adamvert/pouchdb