Fixed some errors. Added test for DataFilesReaderFactory.