[test] test case for #391
[test] fix some problem of test case.
[test] test case for loaded event

#469
[test] test case for `new-instance` in window
Merge pull request #474 from owenc4a4/test

Test case for `new-instance`, `loaded event` and fix some problem in test case