Testing dispersion of gravitational waves from eccentric extreme-mass-ratio inspirals