Add some unit test
Merge remote-tracking branch 'origin/master' into gh-pages