It would certainly be a good starting point though. Something must change, and mandatory testing changes nothing.
This led to some interesting subjects like yoga and womans rights but it also provided subjects of interest to nearly all the students so there was more desire to attend and learn.
An additional bonus of this kind of system is that often subjects like computer games development require some grounding in maths which makes these kinds of abstract subjects more desirable.
It was also clear that these core subjects are requirements for further education so there was always enough desire from people wishing to attend university to keep the core subjects going.
You can't be home-jailed.
At the end of it, you get a degree.
House arrest
Prison education is pretty common
Granted, not everyone can leave jail. But take a boarding school and a minimum security prison and you're getting pretty close to the same thing.
So your analogies don't exactly work. I would suggest reading the work of John Taylor Gatto, A.S. Neil, Francisco Ferrer, and Paulo Freire, though, if you're interested in critiques of education systems and their alternatives.
Teachers are professionals who are generally trying to help you become a better person (even if a few degenerate in Stanford Prison Experiment style guards, and they are the ones some people really remember).
Students don't have to attend class. They just have to go to school. They can choose, on a daily basis, what class they want to be in. If they disrupt, they're kicked out of class for the day, since attendance at that class is a voluntary association.
To get credit and a grade for a class, you have to complete X homework assignments and pass Y amount of tests.
If a kid decides they wants to hang out all day in the cafeteria, good for them. Teachers might want to check in on them and see why or offer books or computer access to do some self-education.
You'd also want to diversify the classes if possible. Add classes in video game design, automotive engineering, etc. Make these classes enticing, and hard. Rope the kids in to hard classes by making them seem like blow-offs.
But most of all, let the kid choose to learn, and you have a lot more power over the kids who come in just to disrupt. You also have the added social pressure of the other kids, who will recognize that the disruptors don't have to be there and are only ruining it for everyone.
Never underestimate the motivating power of boredom.