Factor mongodb launching test harness that can be injected into tests