Reenable visibilty ref test. Fixes #1576.