Fixes the tests so they work locally too, not just Jenkins. Eliminates leftovers from previous tests affecting other test results.