add DataFile unittests
Try to take care of malformed data file (eg: empty) Fixes #24
Merge branch '24-empty-file'