test_runner: refactor to use min/max of validateInteger
#53148
+4
−11
Merged