added tests for visibility check