Elections offer early Trump test