Test creation of file