add unit test for widget window