test changing visibility improperly