Tweak tests in pr#1716, set fileHandleLimit to 1024 (#1847)

* set fileHandleLimit to 1024 and add testcase

* Make test tighter.
1 file changed