Hmmm. So the focus should have been on me, not my student's question? The question was how do they pass a test when they don't believe in evolution. My response was, "Did you learn what the text taught?" The answer was, Yes. Then note what the text taught and move on. I even said if they wanted (and had time), they could add what they thought about evolution.
Mentioning God does not break the rules. When students talk about God and include me, I say little, but listen. When students are not accurate in what they say about another faith or religion, I offer a correction which is always appreciated by those whose faith is being targeted. School boards might be be fretting over religion being mentioned in school, but the students aren't. First, it seldom is brought up, but when it is, it has always been matter-of-factly, with no more import than discussing the weather or their favorite team. Students include me in those discussions as well. They are more interested in my favorite football team than my religion, and sometimes what my favorite subject is to substitute teach.