Thermal Testing of Non-Volatile Memories