Fix an unitialized variable bug.
Make test more robust against conservative stack scanning.