Indeed, I imagine the tests do try their best to simulate a normal driving pattern but of course it's a statistical average that doesn't favor outliers on both ends, even though they do try with country and city cycles.
If I lived in town, I'd jump at a full plugin electric, but out here, given the cheapness and convenience of a little ICE, it's a harder sell.
My current Hyundai accent now has a bit over 95 thousand miles on it, and has needed almost no maintenance in its life: a front brake job, a couple of cheap strut mounts, a set of tires, and that's about it. I have a long time average of about 40 mpg. Although I bought it used with about 30K on it, it was one of the cheapest cars made, even new. An electric would likely be approaching battery end of life, and with first cost as a factor, I doubt it could give better cost benefit ratio. That's likely to change in the near future, but so far, it's a hard sell.