Added more tests.

Add missing windowId parameter to update method.