testing onbeforeunload