[test]add case for #984

add case for #984 `nw.exe still in memory after using a "close/quit" command`