[test] test case for #486: Application Crash when quitting with secondary window on top