Add test case to cover ordering of directories