tests: add test case for empty-dirs-with-hidden bug