separate getCanonicalDataFile into two methods
test getCanonicalDataFile