Tested pagehide event