Added tests, and some DomDocument/ScalaXmlDocument methods