Add some tests for WindowManager