Fix hash randomization issue in unittest.
Missed one more.
Add smoke test when there is no mapping.
Merge pull request #1159 from chebee7i/hashranderror

Fix hash randomization error.