for some reason the last file is never written and 'npm test' does not work but 'nodeunit tests/' does