Updated test to clear .txt file after test completes.