Added test for readdir()