test onpage and sessionpage output