Created by: reyoung
- Error occurred when enable Async Load in TestDataProvider.
- It because DataProvider is calling getNextBatchInternal in one thread, and destructing DataProvider in other thread.
- Add wait routine in DataProvider destructing.
- Also fix another bug, when destructing TestDataProvider and do not read any test data.
Fix #286 (closed)