Everyone knows I'm the first one to admonish teachers for limiting the use of Christian terminology. But in this case, I agree with the teacher.
Clearly the teacher isn't saying you can't say God bless you. They simply didn't want any talking at certain times of class. And that's ok. As testing may be going on and there is simply no talking allowed.