Added tests for update_recent_dir