Implement and test contingent voting