fix Duke layout and add testcase7 to loop through all files in a directory