Add tests for directory enumeration