added test method in WindowModel