refactored spec, now it is possible to run tests every time even if the test directory already exists. Better logic with implemented before blocks.