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