Primaries to test new election law