Test element visibility