fixes #2827
cleanup
fix tests
Merge pull request #2835 from digi604/fix-2827

fixes #2827 (moving public pages to unpublished parents)