Added visibility plugin + tests

Just wrapped #160 as plugin and added another test.