Improved the Unit test for the Directory class