Test iterating over files in directory