test FileWriter