[test] test case for `new-instance` in window