Can I make up for a lack of foreign language credits in the rest of my application?

I wonder if it’s possible to test out of foreign language?

Both my kids are at T20 colleges and they only took 1 actual year of foreign language while at HS (AP during 9th grade). They received, during middle school, credits for HS Level 1-3 by taking a single test. These credits appeared on HS transcript but they did not attend any classes for these.