Text this: Testability and fault tolerance for emerging nanoelectronic memories