Tests, each test is a data point, which demonstrates a further proving of the player.
If we don't take Tests as the criteria, the mileage on the players varies widely, and that's not even comparing eras, some players are in more "active" competitions and leagues than others. Going by a tine based measure of longevity instead of data point measured, opens up all of these inconsistencies as to whose longevity was actually more valuable, etc. Stick to number of Tests, to keep things fair. (And no, I don't think that cricket from pre World War II, and a more modern cricketing Era can be compared anyway, so I don't have any interest in making any consistency to aid longevity comparison in that regard either.)
The #of Tests measure, should of course be thrown out for all England players, in whose case we should of course resort to whichever measures keep the likes of Alistair Cook out of any listing of "greats" of the game.