Bugfix: Duplicate Descendents
I noticed that when creating the pages we were making the same page multiple times - this was why when we made that temporary index we got the same directory multiple times.
Implemented a fix and added a test to verify.