xml.writer.tests: use temp-file instead of assuming resource: is writabl...

...e