Here is the error without Q's long stack trace support:
1) fs fs.fchown(fd) can change tmp/test1.txt to own uid, gid:
TypeError: path must be a string
at fs.chown (fs.js:853:11)
at Promise.apply (/home/jhh/git/nor-fs/node_modules/q/q.js:1022:26)
at Promise.promise.promiseDispatch (/home/jhh/git/nor-fs/node_modules/q/q.js:661:41)
at /home/jhh/git/nor-fs/node_modules/q/q.js:1273:25
at flush (/home/jhh/git/nor-fs/node_modules/q/q.js:106:17)
at process._tickCallback (node.js:415:13)