Test for creating directories refactored