No testimony may be received as to any illegal votes unless the party contesting the election delivers to the opposite party, at least three days before trial, a written list of the number of illegal votes and by whom given, that the contesting party intends to prove at the trial. No testimony may be received as to any illegal votes, except as to such as are specified in the list.