Fix gearman & mongo tests