Following a suggestion in the comments, changed ValidateCheckInputsForAllFlags from testing all possible flag combinations to testing a random subset. Also created a new enum constant for the highest flag, so that this test doesn’t keep testing an incomplete subset in case a new flag is added.
Timing for checkinputs_test:
0Before:   6.8s
1After:    3.7s
2----------------
3Saved:    3.1s (45%)