Added test on dir existance