added a new test which helped me find a bug in visibility code