[test] clear the TRACE_FILE after closing it