Add test for creating directories
Add create_dir function and fix test