Fixing tests to remove temporary files

Tests will be written to a folder in /tmp called "tls_tests"