Added a few tests for directory operations.