fix #948 issue -- Using unititialized value in unittest.
Merge pull request #965 from ruil2/uinit_fix

fix #948 issue -- Using unititialized value in unittest.