Add shared visibility tests. [test]