added test for datafile exists