tests: replace run() with succeeds() or fails()
#7426
Merged
run() with succeeds() or fails()
#7426