Add a test for an infinite loop bug in SiteTree