[Test] make testNoMasterActions more resilient