Fix inheritance of owned pages from pages
Pages functional test and required changes to the Pages controller to make the tests pass