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