Fix validator unit test
Merge pull request #336 from shenrie/master

Fix validator unit test