added tests for empty directory