Testing file writer