Optimization of Test/Diagnosis/Rework Location(s)