Added test for active window.