[tests] provide more checking
Merge pull request #361 from tuong/master

[tests] provide more checking