Fixing tests to remove temporary files

Tests will be written to a folder in /tmp called "tls_tests"
Merge pull request #980 from cduclos/test-writing-week

Fixing tests to remove temporary files