Add dir tests to loop