Add TestWriter

TestWriter contain methods used in Article Java - Write to file
Merge pull request #43 from Doha2012/master

Add TestWriter