base changes for using utils base tests in doctests
Fixed strange behavior with httpretty and mongodb