But teaching this is what schools should be doing, but spending a long time just teaching to the test is the fault of teachers, not the govt.
Yes and no.
But teaching this is what schools should be doing
Well, I would disagree with you there. Although grammar knowledge is needed, I am yet to be convinced of the necessity for an 11 year old to be able to recognise an adverbial phrase or a subordinating conjunction.
spending a long time just teaching to the test is the fault of teachers
Maybe, maybe not.
DD has done her first papers this week. Her school does not go for mad practice. But if she is going to be tested on subordinating conjunctions, then it is after all the job of the teacher to try to get her to understand them.
not the govt
Schools get judged by the government on their SATs results. A school cannot just 'ignore' SATs and the national curriculum. A school found to be doing that would be deemed to be failing. So when the government decides to put detailed grammar on the tests, and judges the schools based on the tests, then the effect of teachers trying to teach the information is hardly a surprise.