writFile testing almost complete