add FileWriter test case