Testing STT-MRAM: Manufacturing Defects, Fault Models, and Test Solutions