Added test cases for isVisibleTo methods.