add test case for #858,#864,#865,doTestWithDirectory can test all file in directory.
Merge pull request #873 from bronze1man/pr-test858

add test case for #858,#864,#865,doTestWithDirectory can test all file in directory.