During the pendency of said contest the persons who have been declared elected, as hereinbefore provided, shall exercise the duties of the office.