Add basic tests for Dir