added more test cases
Merge remote-tracking branch 'origin/master' into yongkai