Measuring Security Metrics of Locked Circuits with Test