Fix 2 unittests that leave behind a dirty shadow memory.

BUG=
TBR=sebmarchand@chromium.org

Review URL: https://codereview.appspot.com/183830043