fix the test

update the test function testReadingAllowedDirectories()