test for readdir