Debt Incurrence Test vs Covenant

What’s the difference?

It seems to me like a covenant is meant to protect a lender into the future.

A debt incurrence test is simply a test that basically says to the borrower, ok, what debt have you got? And then they decide at what rate to lend at? If I click on the hyperlink, the definition of debt incurrence test states that it is also a covenant? This doesn’t make sense to me.

Correct?