Your gun has certainly been test fired, and probably more than twice. The fired cases are included now by many manufacturers with all new handguns since it is easier than trying to determine which states require them to be submitted (more oppressive government policy) to the authorities when a pistol is purchased and which do not. Generally, the condition of the barrel alone can tell you if it has been shot a lot or a little, and what type...meaning jacketed or lead, etc...of rounds were fired...more or less...but it is not a "perfect science". High powered rifles are a little easier to diagnose with experience, (rounding off of "lands" on rifling, throat erosion, etc.) but damn few gunsmiths can do more than hazard an educated guess based only on the barrel of a handgun.