writeFile testing complete