Mercifully in Australia we don't have standardized testing every year (yet), but enough importance is tied to the tests that do take place that a disproportionate amount of time is spent preparing kids for the style of tests administered, regardless of any gaming of the system, reducing the time spent on the rest of the curriculum.
I know we've argued education before and so I'm not expecting a hallelujah moment, but I figured it was a point that should also be made.
Most of my math classes growing up ended with a week or two of "here's how what you just learned applies in the real world / future classes". It was one of the few redeeming aspects of my early math education, and is probably one of the first things to get cut when schools want to beef up test scores.
Is that a better use case for you?
So yes, I think tests are doing the right thing here - making sure the teacher does his job before he goes off on random tangents.
This doesn't seem like a bad thing. Deciding what needs to be taught is the job of the political system, not the teachers.