modified fs deletedirectory method and added test3