fix shadow mem test to work outside NMI
===VersionHistory:None===