Visiblity and Opacity test code