Stabilize startup of ES in tests