For mass produced handguns, especially those designed for defensive purposes, I would suspect only a function test would be performed, the sight heights having been worked out during R&D. For higher end, like Performance Center or target pistols, there may be an accuracy test. I know my Ruger Mk II Government Target pistol came with a 25 yard test target, but my GP-100 did not have a test target, both were purchased brand new.