Any and all elections held for the purpose of determining whether a tax shall be levied in the county or in a school district of the county for public school purposes or determining whether or not school districts should be consolidated or whether or not a school district should be enlarged by consolidating therewith territory adjacent to such district may be contested on the same grounds and in the same manner as is provided by general law for the contest of elections of county officers, and all laws governing the grounds, conduct and determination of contests of election of county officers shall govern contests authorized by this section.