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