[test] test case for issue #1236--App Crashes when you try to open a window after previously closing a window