Generally speaking, we built at least 3 versions (4 versions depending how you count).
1) Flight. The one put in the payload.
2) Flight spare. Often used in one of the 2 or 3 Mars test facilities at (the 2 Mars yards or simulation facility) and hooked up to a spare Ground Data System (controller system) via a 6 inch thick, 100 foot long “umbilical cord”.
3) A mechanical flight spare. A usually 80-90% mechanically accurate version that we called Bubba (at least for MER) that we’d pull out for Open House, or other special events and displays.
4) Lastly, I personally worked with subsystem flight spares (44u rack of the Satellite Communication Subsystem or the Flight Control System). Way too big to fit in a spacecraft in this configuration or a mock-up of the system.
What might be a more interesting story is how we bought dozens and dozens of old SUN pizza boxes and Sparc Stations in the mid and late 2000s from eBay (literally) in order to be able maintain the Flight Ground Data System.