cookie age test fix