Add test for view lifecycle event method handlers