Add tests for directory type #1