Add a test for adding a directory