Handle directories in tests folder