test creation of file