Design and Test Challenges in Resistive Switching RAM (ReRAM): An Electrical Model for Defect Injections | IEEE Conference Publication | IEEE Xplore