Test creating file