datafile generator functionality and tests