wait for safe state for only nodes which used in test
refine method isAllInSafeState
Merge pull request #4250 from ahmetmircik/fix/3.4/waitSafeState

Wait for safe state for only nodes which used in the test