You do know that it's generally interpreted that that clause had a higher object; to cut off forever every pretence of any alliance between church and state in the national government. The framers of the constitution were fully aware of the dangers from this source, marked out in the history of other ages and countries; and not wholly unknown to our own.
It didn't / doesn't mean that we weren't supposed to ask about or question a politicians religion.
The article doesn't address whether you should "ask" or not. It encourages that a religious test not be given. The article's intent and the spirit of the writing is abundantly clear.