Improve stability of MinimumMasterNodesTests