Quote from AAAintheBeltway:
OK sorry, I misunderstood your post. I still don't agree with what you wrote however. Unless I am badly mistaken, the prohibition on religious tests for public office only applied to federal offices. Similarly, the First Amendment prohibition on establishment of religion only applied to the Congress. States were allowed to have official state religions, and some, like Virginia, did exactly that.
In the 1960's, the Supreme Court invented the incorporation doctrine and thereby claimed that the 14th Amendment incorporated and applied to the several states the Bill of Rights. Only took them 100 odd years to "discover" that the states that ratified the 14th Amendment also meant to apply the Bill of Rights to themselves.