implemented delete after test run
refactored