test for contentWindow