add test for directory existence