test fix, add file writing to all file types