- fixed writeXML
  * don't write duplicate package entries
  * fixed target file setup in tests/writeTester