Added GraphMLWriterTest, implemented it's testNormal method, and fixed code so that it pass.