Directory tests.