This PR adds a missing test for the -maxtipage parameter which controls what is the allowed maximum tip age for leaving IBD.
This is a backport of core#24154 and a partial backport of core#26477
https://github.com/bitcoin/bitcoin/pull/26477/commits/e4be0e9b0661a8af49c4e6d5472804913f04b8fc
The commit from core#26477 should allow catching of the introduced regression when backporting core#25704