Test for a basic scope leak with rename (as well as open).