test with window.alert