What did religious refugees have to conform to when holding public office?