Add TestWriter

TestWriter contain methods used in Article Java - Write to file