In case of a contest of an election, the person holding the certificate of election shall take possession and discharge the duties of the office until the contest is decided.