add try catch for test file removal