Since ggplot2 3.4.0 the size aesthetic for lines is deprecated and linewidth should be used instead. As size is absolute and linewidth is relative, the 1 to 1 plot comparison tests will most likely fail as it'll be hard to find the exact linewidth equivalent of the current size values.