Add test for directory reading.