reduce the chance of potential unit test failure.
remove warnings!
Merge pull request #385 from gcheng/nowarnning

remove warning in code