Add tests for window resize