Test visibility toggling