Edit: don't get me wrong, _not_ doing that for children is evil. But, the results thus far do speak for themselves... And uncle Bob will not take being sent back to middle school all that well.
You have this idea that society is a monolith you can keep people in and out of based on the results of an algorthm, and that's only true for the most authoritarian and oppressive regimes.
That's the world you're trying to create. Social Credit scores as maintained by facebook, etc.
It's truly repulsive.
Almost everyone get's swimming lessons and tests. And yet, and this might really blow your mind, you can still actually go swimming without actually having had passed the test. No SWAT team will barge down your door and take you away if you go swimming.
Then whats the purpose of the test? Tests are scores used to determine something. You're talking about forcing people to take a test to do what, exactly? Or is it just to indoctrinate them with whatever the test-maker (because it will change every election) comes up with? A thing you must study for but with no reprecussions? Ya right.
Once you create a certification for it, it will become a private passport for access to goods or services, or it will be meaningless. In both cases its either a waste or evil.
I'm not sure why you keep going down this dark path which I didn't even touch on remotely. You just completely imagine it.