Fix the directory index test

Related to #104