test for data2file