test for visibility:hidden and display:none