fixed mongoosehandler usage in processtools + tests