testing empty directories vs. non-empty directories