test dir iteration