Use policy event to enable/disable changing document.location
Clean unload test