Statistics for STT-MRAM characterization and its test implications