Add a writing file handler for testing