Add test cases for emitting empty directory entries.