Added unit test + fixed a bug in generate_folder_path()