add tests for directory actions