generalise temp file based tests
generalise temp file based tests
remove unused code
remove debug code
LINT
account for broken assumption in node.js fs
fix wrong assumption of pre-exisiting /tmp directory