Fix test.
Add missing visibility() accessor to Shape.