Clean up `tests.test_visibility` to remove legacy code.