I test it in the lab. Build off-site servers and restore from backup. If your budget allows get the same servers for lab as production. It'll be a lot easier. If not, general servers are ok. It's just takes longer to set them up since you can't use cisco OS image.
I also test upgrades in the lab first before applying in production.