fix doc tests to be less coupled to connection internals
fix doc tests to be less coupled to connection internals

gdseller/ShareJS,igmcdowell/ShareJS,mcanthony/ShareJS,matthewbauer/ShareJS,luto/ShareJS,rasata/ShareJS,freewind/ShareJS,gdseller/ShareJS,erpframework/ShareJS,igmcdowell/ShareJS,Nzaga/ShareJS,share/ShareJS,kustomzone/ShareJS,a0x/ShareJS,modulexcite/ShareJS