Fix the directory index test