split xmlWriter to smaller methods
adding more RebelXmlWriter tests + fixing minor typos