Add test for retaining visibility on LocalAdapter