[test]add test case for crash when reloading with devtool opened

the nw will crash when refreshing the page with the devtool opened