Fix FileWritter test