Updated the test suite such that directories and files are now created and removed after each test run.