Add test stubs for managing page lifecycle