On the trial of contested nominations or elections of senators and representatives in the General Assembly and of contested nominations of representatives in Congress, the petitioners complaining of nomination or the election, and the person returned as nominated or elected, shall be the parties thereto.
25 P.S. § 3403