Make sure pages are destroying when popping
Summary:
For some reason, reparenting the page is not enough. Also fixes the test which
was not working properly.
Test Plan: Now the tests pass
Reviewers: Kirigami, mart
Reviewed By: mart
Subscribers: plasma-devel
Tags: Kirigami
Differential Revision: https://phabricator.kde.org/D3726