Add tests for restricted visibility