add test for scanning latest file in latest dir