Add test in case we add the same folder twice or more for add directories method and fix it